

*** Figure 1 - Distribution of Local Roots Index (LRI) scores ***
ta lri

***Table 1 - Effects on Legislator Ideological Extremism ***
* MODEL 1 *
reg sm_ideology lri undergrad_any postgrad_any pres_vote_2p mmd_cont total_pop_log prof_squire house chamber_comp democrat prev_pol_exp party_campaign_exp seniority_scaled female race_nonwhite, cluster(fips)
* MODEL 2 - Fixed Effects *
xtreg sm_ideology lri undergrad_any postgrad_any pres_vote_2p mmd_cont total_pop_log house chamber_comp democrat prev_pol_exp party_campaign_exp seniority_scaled female race_nonwhite, fe

***Figure 2 - Predicted values of DV based on LRI ***
reg sm_ideology lri undergrad_any postgrad_any pres_vote_2p mmd_cont total_pop_log prof_squire house chamber_comp democrat prev_pol_exp party_campaign_exp seniority_scaled female race_nonwhite, cluster(fips)
margins, at(lri=(0(1)4)) vsquish
marginsplot, xtitle("Local Roots Index") legend(position(6)) ytitle("Predicted Extremism (Shor-McCarty NPAT Score")

*** Comparison of Effects to other IVs (cited in main text) ***
reg sm_ideology lri undergrad_any postgrad_any pres_vote_2p mmd_cont total_pop_log prof_squire house chamber_comp democrat prev_pol_exp party_campaign_exp seniority_scaled female race_nonwhite, cluster(fips)
margins, at(pres_vote_2p=(.25(.05).95)) vsquish
margins, at(pres_vote_2p=.5) vsquish
margins, at(pres_vote_2p=.635) vsquish
margins, at(pres_vote_2p=.75) vsquish
margins, at(seniority_scaled=(0(.1)1)) vsquish
margins, at(democrat=(0(1)1)) vsquish
margins, at(party_campaign_exp=(0(1)1)) vsquish


*** Supp. Appendix Table A1 — Interactions ***
reg sm_ideology c.lri##i.democrat undergrad_any postgrad_any pres_vote_2p mmd_cont total_pop_log prof_squire house chamber_comp prev_pol_exp party_campaign_exp seniority_scaled female race_nonwhite, cluster(fips)
reg sm_ideology c.lri##c.seniority_scaled pres_vote_2p undergrad_any postgrad_any  democrat mmd_cont total_pop_log prof_squire house chamber_comp prev_pol_exp party_campaign_exp  female race_nonwhite, cluster(fips)
reg sm_ideology c.lri##c.pres_vote_2p undergrad_any postgrad_any  democrat mmd_cont total_pop_log prof_squire house chamber_comp prev_pol_exp party_campaign_exp seniority_scaled female race_nonwhite, cluster(fips)
reg sm_ideology c.lri##c.house undergrad_any postgrad_any  democrat mmd_cont total_pop_log prof_squire chamber_comp pres_vote_2p  prev_pol_exp party_campaign_exp seniority_scaled female race_nonwhite, cluster(fips)
reg sm_ideology c.lri##c.chamber_comp undergrad_any postgrad_any  democrat mmd_cont total_pop_log prof_squire house female pres_vote_2p  prev_pol_exp party_campaign_exp seniority_scaled  race_nonwhite, cluster(fips)
reg sm_ideology c.lri##c.female undergrad_any postgrad_any  democrat mmd_cont total_pop_log prof_squire house chamber_comp pres_vote_2p  prev_pol_exp party_campaign_exp seniority_scaled  race_nonwhite, cluster(fips)
reg sm_ideology c.lri##c.race_nonwhite female undergrad_any postgrad_any  democrat mmd_cont total_pop_log prof_squire house chamber_comp pres_vote_2p  prev_pol_exp party_campaign_exp seniority_scaled, cluster(fips)
reg sm_ideology c.lri##c.total_pop_log race_nonwhite female undergrad_any postgrad_any  democrat mmd_cont prof_squire house chamber_comp pres_vote_2p  prev_pol_exp party_campaign_exp seniority_scaled, cluster(fips)
margins, dydx(lri) at(pres_vote_2p=(0(.1)1))
marginsplot

*** Supp. Appendix Table A2 — Component Effects ***
reg sm_ideology lri pres_vote_2p mmd_cont total_pop_log prof_squire house chamber_comp democrat prev_pol_exp party_campaign_exp seniority_scaled female race_nonwhite if sample == 1, cluster(fips)
reg sm_ideology born_indist pres_vote_2p mmd_cont total_pop_log prof_squire house chamber_comp democrat prev_pol_exp party_campaign_exp seniority_scaled female race_nonwhite if sample == 1, cluster(fips)
reg sm_ideology born_instate pres_vote_2p mmd_cont total_pop_log prof_squire house chamber_comp democrat prev_pol_exp party_campaign_exp seniority_scaled female race_nonwhite if sample == 1, cluster(fips)
reg sm_ideology undergrad_instate undergrad_any pres_vote_2p mmd_cont total_pop_log prof_squire house chamber_comp democrat prev_pol_exp party_campaign_exp seniority_scaled female race_nonwhite if sample == 1, cluster(fips)
reg sm_ideology postgrad_instate postgrad_any pres_vote_2p mmd_cont total_pop_log prof_squire house chamber_comp democrat prev_pol_exp party_campaign_exp seniority_scaled female race_nonwhite if sample == 1, cluster(fips)

*** Supp. Appendix Table A3 — Alternate DVs ***
* Original Model - Shor-McCarty NPAT *
reg sm_ideology lri undergrad_any postgrad_any pres_vote_2p mmd_cont total_pop_log prof_squire house chamber_comp democrat prev_pol_exp party_campaign_exp seniority_scaled female race_nonwhite, cluster(fips)
* Extremism Distance from Party Median *
reg sm_extremism_party lri undergrad_any postgrad_any pres_vote_2p mmd_cont total_pop_log democrat prev_pol_exp party_campaign_exp seniority_scaled female race_nonwhite, cluster(fips)
* Extremism Distance from Floor Median *
reg sm_extremism_floor lri undergrad_any postgrad_any pres_vote_2p mmd_cont total_pop_log democrat prev_pol_exp party_campaign_exp seniority_scaled female race_nonwhite, cluster(fips)

*** Supp. Appendix Table A4 — Party Splits ***
reg sm_ideology lri undergrad_any postgrad_any pres_vote_2p mmd_cont total_pop_log prof_squire house chamber_comp prev_pol_exp party_campaign_exp seniority_scaled female race_nonwhite if democrat == 0, cluster(fips)
reg sm_ideology lri undergrad_any postgrad_any pres_vote_2p mmd_cont total_pop_log prof_squire house chamber_comp prev_pol_exp party_campaign_exp seniority_scaled female race_nonwhite if democrat == 1, cluster(fips)


*** Supp. Appendix Table A5 - Key Variable Comparisons: Sample Versus KnowWho Cross-Section ***
su unopposed
su unopposed if sample == 1
su percentvot if unopposed == 0
su percentvot if sample == 1 & unopposed == 0
su race_nonwhite
su race_nonwhite if sample == 1
su female
su female if sample == 1
su democrat
su democrat if sample == 1
su pres_vote_2p
su pres_vote_2p if sample == 1
su seniority_scaled
su seniority_scaled if sample == 1
su sm_ideology
su sm_ideology if sample == 1

label var knowwho_uid "KnowWho Unique Identifier"
label var sample "Complete data for main sample"
label var state "State Abbreviation"
label var chamber "House or Senate Chamber"
label var house "Lower Chamber = 1, Others = 0"
label var lname "Legislator Last Name"
label var district "District Number/Identifier"
label var party "Legislator Party Affiliation"
label var sm_ideology "Legislator NPAT Ideological Extremism"
label var sm_ideology_party "Legislator Extremism Relative to Party Median in Chamber"
label var sm_extremism_floor "Legislator Extremism Relative to Floor Median in Chamber"
label var lri "Legislator Local Roots Index"
label var born_indist "Legislator was born in district they represent"
label var born_instate "Legislator was born in state they represent"
label var undergrad_instate "Legislator attended undergrad in state they represent"
label var postgrad_instate "Legislator attended postgrad in state they represent"
label var undergrad_any "Legislator attended undergrad"
label var postgrad_any "Legislator attended postgrad"
label var pres_vote_2p "Legislator's party's pres. nominee two-party share of the vote in 2016"
label var mmd_cont "District magnitude (number of legislators representing district)"
label var total_pop_log "Natural log of total district population"
label var prof_squire "Squire professionalism score"
label var chamber_comp "Chamber competition (0=100% of legislators in one party; .5 = 50/50 chamber)"
label var democrat "Democrat = 1, all others = 0"
label var prev_pol_exp "Prior political experience = 1, all others = 0"
label var party_campaign_exp "Prior party or campaign experience = 1, all others = 0"
label var seniority_scaled "0 = most junior member in chamber, 1 = most senior member in chamber)"
label var female "Female legislator = 1, all others = 0"
label var race_nonwhite "Nonwhite legislator = 1, all others = 0"
label var percentvot "Legislator's vote share in most recent election"
label var unopposed "Legislator ran unopposed in most recent general election"